#include <func.h>

int main()
{
    int i;
    float f;
    char c;
    char buf[1024]="10 98.50 a";
    //sscanf 格式化读取字符串
    sscanf(buf,"%d%f %c",&i,&f,&c);
    printf("%d %5.2f %c\n",i,f,c);
    return 0;
}